package com.xilian.coder.easepermissions;

import android.app.Application;

/**
 * Created by Administrator on 2017/6/7.
 */

public class App extends Application {

    private static App app;
    public LocationService service;

    @Override
    public void onCreate() {
        super.onCreate();
        app = this;
        service = new LocationService(getApplicationContext());
    }

    public static App getInstance() {
        if (app == null) {
            return new App();
        }
        return app;
    }
}
